package com.test.hello;

import com.alibaba.excel.EasyExcel;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Paths;

public class Main02 {
    public static void main(String[] args) {
        String path="C:\\Users\\lei.liu\\Desktop\\out\\excel\\test2.xlsx";
        File file= Paths.get(path).toFile();
        InputStream is = null;
        try {
            is = new FileInputStream(file);
        } catch (IOException e) {
            e.printStackTrace();
        }

        EasyExcel.read(is).sheet().headRowNumber(2).doRead();
        
    }
}
